package com.macro.mall.tiny.shejimoshi;

public class Instance {

    private Instance(){

    }
    //构造方法私有,不允许外部创建


    public static Instance getInstance(){
        return InstanceHodler.instance;
    }


    private static class InstanceHodler{
        public static Instance instance=new Instance();
    }
}
